package top.zerozoo.learn.grade.vo;

import top.zerozoo.learn.grade.entity.Admin;

public class AdminInfo {
    private String nickname;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public static AdminInfo parse(Admin admin){
        AdminInfo adminInfo = new AdminInfo();
        adminInfo.setNickname(admin.getNickname());
        return adminInfo;
    }

    @Override
    public String toString() {
        return "AdminInfo{" +
                "nickname='" + nickname + '\'' +
                '}';
    }
}
